#include <iostream>
using namespace std;
class myostream
{
public:
	myostream operator<<(int a)
	{
		std::cout << a << endl;
		return *this;
	}
	myostream operator<<(double a)
	{
		std::cout << a << endl;
		return *this;
	}
	myostream operator<<(const string &a)
	{
		std::cout << a << endl;
		printf("a=%s\n",a.data());
		return *this;
	}
};
int main()
{
	myostream myout;
	myout << 123 << 3.14 << "12245";
}
